<?php printHeader('notes', false, 'notes', false); foreach($Array as $note){ ?>

<div id="edit" class="block-middle">
            <div class="head-block">edit</div>
            <form action="notes.php?go=edit" method="post" enctype="multipart/form-data">
                    <fieldset style="text-align:left; width:95%; margin:auto;">
                        <legend>Modifier une note</legend>
                        <table style="margin:auto;">
                            <tr>
                                <td><label id="titreLabel" for="titre">Titre :</label></td>
                                <td><input type="text" name="titre" id="titre" size="74" onblur="verifRegex(this, rgxTitre)" value="<?php echo utf8_encode($note["name"]); ?>" /></td>
                            </tr>
                            <tr>
                                <td colspan="2" style="text-align:center;"><textarea id="texte" name="texte" cols="180" rows="5" onfocus="clearTextArea(this, defautNews)"><?php echo $note["infos"]; ?></textarea></td>
                            </tr>
                            <tr>
                                <td><label id="lienLabel" for="lien">Lien :</label></td>
                                <td><input type="text" name="lien" id="lien" size="94" value="<?php echo $note["website"]; ?>" /></td>
                            </tr>
                            <tr>
                                <td><label id="publicLabel" for="public">Public :</label></td>
                                <td><input type="checkbox" name="public" id="public" <?php if($note["public"]) { ?>checked="checked" <?php }?>/></td>
                            </tr>
                            <tr style="display:none;">
                                <td><label for="id" style="display:none;" >ID notes (do not change) :</label></td>
                                <td><input type="text" style="display:none;" name="id" id="id" size="5" value="<?php echo htmlspecialchars($_GET['id'])?>" onblur="verifRegex(this, rgxNombre)"/></td>
                            </tr>
                            <tr>
                                <td colspan="2" style="text-align:center;">
                                    <br /><input type="reset" value="Réinitialiser" />
                                    <input type="submit" value="Envoyer!" /><br />
                                    <span id="footerErreurTitre" style="display:none; color:red;" ><br />/!\ Erreur dans le titre /!\</span>
                                    
                                </td>
                            </tr>
                            
                        </table>
                        <script type="text/javascript">
    var editor = CKEDITOR.replace( 'texte',
    {
        toolbar : 'News',
        contentsCss : 'ckeditor/contents.css',
        coreStyles_underline	: { element : 'span', attributes : {'class': 'Underline'}},
        coreStyles_strike	: { element : 'span', attributes : {'class': 'StrikeThrough'}, overrides : 'strike' },
        coreStyles_subscript : { element : 'span', attributes : {'class': 'Subscript'}, overrides : 'sub' },
        coreStyles_superscript : { element : 'span', attributes : {'class': 'Superscript'}, overrides : 'sup' }
    });
                        </script>
                    </fieldset>
                </form>
        </div><br />
        
<?php
}
printFooter();